import { ApiProperty } from '@nestjs/swagger';

export class BaseDto {
  @ApiProperty({
    description: 'ak',
    type: String,
    example: 'ALTAK8RKsqz0GWmrUfJSKe34wd',
    required: false
  })
  AK: string;

  @ApiProperty({
    description: 'SK',
    type: String,
    example: 'f75c04297e7a43c786b63c07bc661d1b',
    required: false
  })
  SK:string;

  @ApiProperty({
    description: '目标域名',
    type: String,
    example: 'https://qianfan.baidubce.com',
    required: false
  })
  endpoint: string;
  
  @ApiProperty({
    description: '请求的URL',
    required: true,
    type: String,
    example: '/wenxinworkshop/dataset/create',
  })
  path: string;

  @ApiProperty({
    description: '方法类型 默认POST',
    required: false,
    type: String,
    example: 'POST',
  })
  method: string;
}
